package main

import (
	"fmt"
	"math/rand"
)

func main(){
	name := []string{"王百文","赵宇佳","龚念","毛善文","胡誉钟"}
	fmt.Println(name)

	lenname := len(name)

	for i:=0;i<lenname;i++{
		j := rand.Intn(len(name))
		fmt.Printf("选中回答问题的人是：%s\n",name[j])
		name = append(name[:j],name[j+1:]...)
		//fmt.Println(name)
	}

}